package com.stone.framework.message.basic.param;

import javax.validation.constraints.Pattern;

import com.stone.framework.message.SortableBody;

import io.swagger.annotations.ApiModelProperty;

public class BusinessParamPageReqBody extends SortableBody {

    @ApiModelProperty(value = "代码")
    private String key;

    @ApiModelProperty(value = "名称")
    private String value;

    @ApiModelProperty(value = "描述")
    private String desc;

    @ApiModelProperty(value = "状态（DISABLED|ENABLED）")
    @Pattern(regexp = "(DISABLED|ENABLED)", message = "[state] must be 'DISABLED|ENABLED'")
    private String state;

    @ApiModelProperty(value = "排序：createDate|updateDate|key")
    @Pattern(regexp = "(createDate|updateDate|key)", message = "[orderBy] must be 'createDate|updateDate|key'")
    @Override
    public String getOrderBy() {
        return super.getOrderBy();
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

}
